An issue I have hit a few times is that the SDL interpreter seems to have
trouble with macro definitions after the first inside say a layered texture.
Something like this:
#declare A_MACRO = {...}
#declare A_LAYERED_TEXTURE = {
texture { .... A_MACRO .... }
texture { .... A_MACRO .... } // This macro substitution is not handled
}
does not work and I am in the habit of coding instead:
#declare A_MACRO {...}
#declare A_LAYERED_TEXTURE_1 = {... A_MACRO ... }
#declare A_LAYERED_TEXTURE_2 = {... A_MACRO ... }
#declare A_LAYERED_TEXTURE = {
texture { A_LAYERED_TEXTURE_1 }
texture { A_LAYERED_TEXTURE_2 }
}
which works fine.
Post a reply to this message
|